package worktest;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
public class Telfee {
	public static double main(String time1,String time2) {
		
		double telFee;
		
		Telephone tp = new Telephone(time1,time2);
		Long minute = tp.getTelephone();
			
			if(minute <= 20){
				telFee = 0.05*minute;
			}else{
				telFee = 1.00 + (minute - 20)*0.1;
			}
			return telFee;
	}

	
}
